import { App } from 'vue'
import Modal from './Modal'

type SFCWithInstall<T> = T & { install(app: App): void }

Modal.install = (app: App) => {
  app.component(Modal.name, Modal)
}

export default Modal as SFCWithInstall<typeof Modal>
